std::vector::operator=

From Cppreference

Jump to: navigation, search
​vector& operator=( const vector& other );
(1)
​vector& operator=( vector&& other );
(2) (C++0x feature)

Replaces the contents of the container.

1) Copy assignment operator. Replaces the contents with a copy of the contents of other.

2) Move assignment operator. Replaces the contents with those of other using move semantics.

Contents

Parameters

other - another container to be used as source

Return value

*this​

Complexity

See also

(constructor)
constructs the vector
(public member function)
assign
assigns values to the container
(public member function)
Personal tools
Namespaces
Variants
Actions
Navigation
Toolbox
In other languages